]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
location: Use translated reason string
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 8 Jan 2018 15:56:43 +0000 (16:56 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 8 Jan 2018 23:25:46 +0000 (00:25 +0100)
Gio now has API to look up localized strings from desktop files,
so we can display a correctly translated reason where available.

https://bugzilla.gnome.org/show_bug.cgi?id=779413

js/ui/status/location.js

index 13aa8a94ef0df19cabea4dc4727b39b17a79d10f..ef91a460d68a77156728e194f93c4cb6b607f749 100644 (file)
@@ -321,7 +321,7 @@ var AppAuthorizer = new Lang.Class({
     _userAuthorizeApp: function() {
         let name = this._app.get_name();
         let appInfo = this._app.get_app_info();
-        let reason = appInfo.get_string("X-Geoclue-Reason");
+        let reason = appInfo.get_locale_string("X-Geoclue-Reason");
 
         this._showAppAuthDialog(name, reason);
     },